package esi.t2no1.ws.model;

public class LoadProfileOutput extends MessageBase {

    private LoadProfile loadProfile;

    /**
     * Calculated for each hour and constituting the total of all input in the area minus
     * the consumption that is metered and balance settled per hour.
     * At present, the network losses are included in the load profile. The load profile is
     * thus the same as what is referred to as unspecified consumption.
     */
    public Long getAreaLoadProfile() {
        LoadProfile profile = getLoadProfile();

        return profile != null ? profile.getTotalAreaInput() - profile.getProfileSettledConsumption() : 0L;
    }

    public LoadProfile getLoadProfile() {
        return loadProfile;
    }

    public void setLoadProfile(LoadProfile loadProfile) {
        this.loadProfile = loadProfile;
    }

}
